﻿<UserControl x:Class="StarTrekFileBrowser.ContentUC"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" x:Name="ContentControl" Background="Black"
             d:DesignHeight="300" d:DesignWidth="300">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="10" />
            <RowDefinition />
            <RowDefinition Height="10" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="10" />
            <ColumnDefinition />
            <ColumnDefinition Width="10" />
        </Grid.ColumnDefinitions>

        <Canvas Grid.Column="1" Grid.Row="0" Background="{Binding ElementName=ContentControl, Path=FrameColor, Mode=OneWay}" />
        <Canvas Grid.Column="0" Grid.Row="1" Background="{Binding ElementName=ContentControl, Path=FrameColor, Mode=OneWay}" />
        <Canvas Grid.Column="1" Grid.Row="2" Background="{Binding ElementName=ContentControl, Path=FrameColor, Mode=OneWay}" />
        <Canvas Grid.Column="2" Grid.Row="1" Background="{Binding ElementName=ContentControl, Path=FrameColor, Mode=OneWay}" />
        <Path Grid.Column="0" Grid.Row="0" Fill="{Binding ElementName=ContentControl, Path=FrameColor, Mode=OneWay}">
            <Path.Data>
                <PathGeometry>
                    <PathFigure StartPoint="10,0" IsClosed="True" IsFilled="True">
                        <BezierSegment Point1="10,0" Point2="0,0" Point3="0,10" />
                        <LineSegment Point="10,10" />
                        <LineSegment Point="10,0" />
                    </PathFigure>
                </PathGeometry>
            </Path.Data>
        </Path>
        <Path Grid.Column="2" Grid.Row="0" Fill="{Binding ElementName=ContentControl, Path=FrameColor, Mode=OneWay}">
            <Path.Data>
                <PathGeometry>
                    <PathFigure StartPoint="0,0" IsClosed="True" IsFilled="True">
                        <BezierSegment Point1="0,0" Point2="10,0" Point3="10,10" />
                        <LineSegment Point="0,10" />
                        <LineSegment Point="0,0" />
                    </PathFigure>
                </PathGeometry>
            </Path.Data>
        </Path>

        <Path Grid.Column="0" Grid.Row="2" Fill="{Binding ElementName=ContentControl, Path=FrameColor, Mode=OneWay}">
            <Path.Data>
                <PathGeometry>
                    <PathFigure StartPoint="0,0" IsClosed="True" IsFilled="True">
                        <BezierSegment Point1="0,0" Point2="0,10" Point3="10,10" />
                        <LineSegment Point="10,0" />
                        <LineSegment Point="0,0" />
                    </PathFigure>
                </PathGeometry>
            </Path.Data>
        </Path>

        <Path Grid.Column="2" Grid.Row="2" Fill="{Binding ElementName=ContentControl, Path=FrameColor, Mode=OneWay}">
            <Path.Data>
                <PathGeometry>
                    <PathFigure StartPoint="10,0" IsClosed="True" IsFilled="True">
                        <BezierSegment Point1="10,0" Point2="10,10" Point3="0,10" />
                        <LineSegment Point="0,0" />
                        <LineSegment Point="10,0" />
                    </PathFigure>
                </PathGeometry>
            </Path.Data>
        </Path>

        <Grid Grid.Column="1" Grid.Row="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="2" />
                <RowDefinition />
                <RowDefinition Height="2" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="2" />
                <ColumnDefinition />
                <ColumnDefinition Width="2" />
            </Grid.ColumnDefinitions>

            <Path Grid.Column="0" Grid.Row="0" Fill="{Binding ElementName=ContentControl, Path=FrameColor, Mode=OneWay}">
                <Path.Data>
                    <GeometryGroup>
                        <PathGeometry>
                            <PathFigure StartPoint="2,0">
                                <BezierSegment Point1="2,0" Point2="2,2" Point3="0,2" />
                                <LineSegment Point="0,0" />
                                <LineSegment Point="2,0" />
                            </PathFigure>
                        </PathGeometry>
                    </GeometryGroup>
                </Path.Data>
            </Path>

            <Path Grid.Column="2" Grid.Row="0" Fill="{Binding ElementName=ContentControl, Path=FrameColor, Mode=OneWay}">
                <Path.Data>
                    <GeometryGroup>
                        <PathGeometry>
                            <PathFigure StartPoint="0,0">
                                <BezierSegment Point1="0,0" Point2="2,0" Point3="2,2" />
                                <LineSegment Point="2,0" />
                                <LineSegment Point="0,0" />
                            </PathFigure>
                        </PathGeometry>
                    </GeometryGroup>
                </Path.Data>
            </Path>

            <Path Grid.Column="2" Grid.Row="2" Fill="{Binding ElementName=ContentControl, Path=FrameColor, Mode=OneWay}">
                <Path.Data>
                    <GeometryGroup>
                        <PathGeometry>
                            <PathFigure StartPoint="2,0">
                                <BezierSegment Point1="2,0" Point2="2,2" Point3="0,2" />
                                <LineSegment Point="2,2" />
                                <LineSegment Point="2,0" />
                            </PathFigure>
                        </PathGeometry>
                    </GeometryGroup>
                </Path.Data>
            </Path>

            <Path Grid.Column="0" Grid.Row="2" Fill="{Binding ElementName=ContentControl, Path=FrameColor, Mode=OneWay}">
                <Path.Data>
                    <GeometryGroup>
                        <PathGeometry>
                            <PathFigure StartPoint="0,0">
                                <BezierSegment Point1="0,0" Point2="0,2" Point3="2,2" />
                                <LineSegment Point="0,2" />
                                <LineSegment Point="0,0" />
                            </PathFigure>
                        </PathGeometry>
                    </GeometryGroup>
                </Path.Data>
            </Path>

            <Grid Grid.Row="1" Grid.Column="1" Margin="5" Name="ContentGrid">
                <Grid.RowDefinitions>
                    <RowDefinition Height="200" />
                    <RowDefinition Height="6" />
                    <RowDefinition />
                </Grid.RowDefinitions>

                <TextBlock Foreground="{Binding ElementName=ContentControl, Path=InformationTextColor, Mode=OneWay}" Text="Information" Grid.Row="0" Margin="6" FontSize="16" FontWeight="Bold" />
                <Rectangle Fill="{Binding ElementName=ContentControl, Path=InformationTextColor, Mode=OneWay}" Height="3" Width="110" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="0,25,0,0" />
                <TextBlock Foreground="{Binding ElementName=ContentControl, Path=TextColor, Mode=OneWay}" Text="{Binding ElementName=ContentControl, Path=InformationText, Mode=OneWay}" Grid.Row="0" Margin="6,33,0,0" TextWrapping="Wrap" />

                <Grid Grid.Row="1">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="3" />
                        <ColumnDefinition Name="GridInformationContentDisplay" />
                        <ColumnDefinition Width="3" />
                    </Grid.ColumnDefinitions>

                    <Canvas Grid.Column="1" Background="{Binding ElementName=ContentControl, Path=DividerColor, Mode=OneWay}" />
                    <Path Grid.Column="0" Fill="{Binding ElementName=ContentControl, Path=DividerColor, Mode=OneWay}">
                        <Path.Data>
                            <PathGeometry>
                                <PathFigure StartPoint="3,0" IsClosed="True" IsFilled="True">
                                    <BezierSegment Point1="3,0" Point2="0,0" Point3="0,3" />
                                    <BezierSegment Point1="0,3" Point2="0,6" Point3="3,6" />
                                    <LineSegment Point="3,0" />
                                </PathFigure>
                            </PathGeometry>
                        </Path.Data>
                    </Path>
                    <Path Grid.Column="2" Fill="{Binding ElementName=ContentControl, Path=DividerColor, Mode=OneWay}">
                        <Path.Data>
                            <PathGeometry>
                                <PathFigure StartPoint="0,0" IsClosed="True" IsFilled="True">
                                    <BezierSegment Point1="0,0" Point2="3,0" Point3="3,3" />
                                    <BezierSegment Point1="3,3" Point2="3,6" Point3="0,6" />
                                    <LineSegment Point="0,0" />
                                </PathFigure>
                            </PathGeometry>
                        </Path.Data>
                    </Path>
                </Grid>

                <Viewbox Name="ContentViewBox" Stretch="Uniform" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,10,0,0" >
                </Viewbox>
                <TextBlock Name="ContentTextBlock" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="0,10,0,0" TextWrapping="Wrap"
                           Visibility="Hidden" Foreground="{Binding ElementName=ContentControl, Path=TextColor, Mode=OneWay}" 
                           Width="{Binding ElementName=ContentControl, Path=GridInformationContentDisplay, Mode=OneWay}" 
                           Grid.Row="2"
                           />
                <!-- <FlowDocumentPageViewer Name="contentFlowDoc" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="0,10,0,0"
                                        Visibility="Hidden" Foreground="{Binding ElementName=ContentControl, Path=TextColor, Mode=OneWay}"
                                        Width="{Binding ElementName=ContentControl, Path=GridInformationContentDisplay, Mode=OneWay}" 
                                        Grid.Row="2"
                    /> -->
            </Grid>
        </Grid>

    </Grid>


</UserControl>
